<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" type="text/css" href="http://localhost/www/item/yushen/Static/bootstrap/css/bootstrap.min.css"/>
	<link rel="stylesheet" href="http://localhost/www/item/yushen/Application/Admin/View/Public/Css/common.css" />
	<style type="text/css">
		body{
			margin-bottom: 100px;
		}
	</style>
</head>
<body>
	<div class="container-fluid">
	<div class="row-fluid">
	<div class="span12">

	<table class="table table-bordered table-hover">
		<tr>
			<th>ID</th>
			<th>商品名称</th>
			<th>价格</th>
			<th>库存</th>
			<th>货号</th>
			<th>销量</th>
			<th>添加时间</th>
			<th>操作</th>
		</tr>

			<?php foreach ($data as $k=>$v){?>
			<tr class="info">
				<td><?php echo $v['gid'];?></td>
				<td>
					<a href="" target='_blank'><?php echo $v['gname'];?></a>
				</td>
				<td>
					<ul>
						<li>市场价：<del>&yen;</del><?php echo $v['market_price'];?></li>
						<li>商城价：<span>&yen;</span><?php echo $v['shop_price'];?></li>
					</ul>
				</td>
				<td>
					<?php echo $v['inventory'];?>
				</td>				
				<td>
					<?php echo $v['goodscol'];?>
				</td>
				<td>
					<?php echo $v['sale'];?>
				</td>
				
				<td><?php echo date('Y:m:d H:i:s',$v['register_time']);?></td>
				<td>
					<a href="<?php echo U('Goods/edit',array('gid'=>$v['gid']));?>" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
					<a href="javascript:;" class="btn btn-danger" onclick="if(confirm('确定删除吗？')) location.href='<?php echo U('Goods/del',array('gid'=>$v['gid']));?>'">
						<i class="icon-trash icon-white"></i>
						删除
					</a>
				</td>
				<?php }?>
			</tr>
		
	</table>

	</div>
	</div>
	</div>
</body>
</html>